#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin

exec &>/dev/console
test -x /etc/runit/reboot && LAST=6    || LAST=0
test -x /etc/runit/reboot && RC=reboot || RC=shutdown
RUNLEVEL=$LAST /sbin/rc $RC

